<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:substituteby="navtempTenant::docHead(#{tenantcenter.name},'首页')">
</head>
<body>
<script type="text/javascript" th:substituteby="demo/tenant/cards1.js::js"></script>
<style type="text/css">
    html {
        height: 100%
    }

    body {
        height: 100%;
        margin: 0px;
        padding: 0px
    }

    #container {
        height: 750px;
    }

    .myRow {
        margin: 0 auto;
        border-bottom: 1px solid #CCCCCC;
        padding: .5em;
    }
</style>
<nav th:replace="navtempTenant::nav(#{tenantcenter.name})"></nav>
<div class="container">
    <div class="row" style="margin-top: 5em;">
        <div class="container-fluid">
            <div class="row">
                <div class="col-sm-12 col-md-12 main">
                    <nav class="navbar navbar-default">
                        <div class="container-fluid">
                            <div class="navbar-header">
                                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                                        data-target="#bs-example-navbar-collapse-2" aria-expanded="false">
                                    <span class="sr-only">Toggle navigation</span>
                                    <span class="icon-bar"></span>
                                    <span class="icon-bar"></span>
                                    <span class="icon-bar"></span>
                                </button>
                                <a class="navbar-brand" href="#">会员卡管理：</a>
                            </div>
                        </div>
                    </nav>
                    <div class="modal fade" id="myModal-del" tabindex="-1" role="dialog"
                         aria-labelledby="myModalLabel-del" aria-hidden="true">
                        <div class="modal-dialog" style="width: 400px;">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                        ×
                                    </button>
                                    <h4 class="modal-title" id="myModalLabel-del">
                                        删除会员卡
                                    </h4>
                                </div>
                                <div class="modal-body">
                                    <p>
                                        确定要删除会员卡<span id="delUserName"></span>吗？
                                    </p>
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                                    </button>
                                    <button type="button" class="btn btn-primary" id="doDel">
                                        确定
                                    </button>
                                </div>
                            </div>
                            <!-- /.modal-content -->
                        </div>
                        <!-- /.modal -->
                    </div>
                    <ul class="nav nav-tabs">
                        <li role="presentation"><a th:href="@{/demo/tenant/cards}">会员卡</a></li>
                        <li role="presentation" class="active"><a href="#">次卡</a></li>
                        <li role="presentation"><a th:href="@{/demo/tenant/cards2}">储值卡</a></li>
                    </ul>
                    <div class="table-responsive">
                        <button type="button" class="btn btn-primary navbar-btn" data-toggle="modal" onclick="window.location.href='/demo/tenant/addCard1'"
                                data-target="#myModal">
                            <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
                            添加会员卡
                        </button>
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th>名称</th>
                                <th>售价</th>
                                <th>次数</th>
                                <th>赠送额度</th>
                                <th>有效期</th>
                                <th>有效期延长额度</th>
                                <th>适用课程</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td>私教30次卡</td>
                                <td>3000</td>
                                <td>30</td>
                                <td>5</td>
                                <td>1年</td>
                                <td>1个月</td>
                                <td>肩背打开私教,极塑美臀私教</td>
                                <td>
                                    <button type="button" class="btn btn-xs btn-info" onclick="window.location.href='/demo/tenant/addCard1'">
                                        <span class="glyphicon glyphicon-edit" aria-hidden="false"></span>
                                    </button>
                                    &nbsp;&nbsp;
                                    <button type="button" class="btn btn-xs btn-danger" onclick="confirmDelUser(4)">
                                        <span class="glyphicon glyphicon-remove" aria-hidden="false"></span>
                                    </button>
                                </td>
                            </tr>
                            <tr>
                                <td>普通30次卡</td>
                                <td>1500</td>
                                <td>30</td>
                                <td>5</td>
                                <td>1年</td>
                                <td>1个月</td>
                                <td>肩背打开大课,极塑美臀大课</td>
                                <td>
                                    <button type="button" class="btn btn-xs btn-info" onclick="window.location.href='/demo/tenant/addCard1'">
                                        <span class="glyphicon glyphicon-edit" aria-hidden="false"></span>
                                    </button>
                                    &nbsp;&nbsp;
                                    <button type="button" class="btn btn-xs btn-danger" onclick="confirmDelUser(4)">
                                        <span class="glyphicon glyphicon-remove" aria-hidden="false"></span>
                                    </button>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                        <nav style="float: right;">
                            <ul class="pagination">
                                <li>
                                    <a aria-label="Previous"
                                       href="/system/authorization/perms/query?pager.currentPage=1&amp;page.pageSize=20&amp;roleName=">
                                        <span aria-hidden="true">«</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="/system/authorization/perms/query?pager.currentPage=1&amp;page.pageSize=20&amp;roleName=">1</a>
                                </li>

                                <li>
                                    <a aria-label="Next"
                                       href="/system/authorization/perms/query?pager.currentPage=1&amp;page.pageSize=20&amp;roleName=">
                                        <span aria-hidden="true">»</span>
                                    </a>
                                </li>
                            </ul>
                        </nav>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
